/*
 * @Description: 附近站点模块中的，公交线路信息模块
 * @Author: yingying.fan
 * @Date: 2019-06-11 10:41:48
 * @Last Modified by: yingying.fan
 * @Last Modified time: 2019-06-11 18:41:37
 */
export default class LineInfoModel {
  /**
   *
   * @param {String} routeId 线路id
   * @param {String} routeName 线路名称
   * @param {Number} direction 线路方向
   * @param {String} startStation 线路起点站
   * @param {String} endStation 线路终点站
   * @param {Number} stopNum 距离站点数
   * @param {String} stationId 选中站点编号
   * @param {String} startTime 首班车时间
   * @param {String} endTime 末班车时间
   * @param {String} price 价格
   */
  constructor(
    routeId,
    routeName,
    direction,
    startStation,
    endStation,
    stopNum,
    stationId,
    startTime,
    endTime,
    price,
    isCollected = false
  ) {
    this.routeId = routeId + ''
    this.routeName = routeName + ''
    this.direction = direction
    this.startStation = startStation
    this.endStation = endStation
    this.stopNum = stopNum
    this.stationId = stationId
    this.startTime = startTime
    this.endTime = endTime
    this.price = price
    this.isCollected = isCollected
  }

  // 是否收藏
  setCollected(isCollected) {
    this.isCollected = isCollected
  }
}
